﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using XinChen;

namespace NT77Admin
{
    public partial class Main : Form
    {
        UKey MasterKey = new UKey("SET-MasterKey", "823088d7ba0c5dad477623f12036b545");
        public Main()
        {
            InitializeComponent();
            if (!MasterKey.Ready) 
            {
                Tools.show_err("找不到主加密锁，请插入后重启本软件！");
                Application.Exit();
            }
            //MasterKey.DataZone1 = "这是属于大连昕辰的软件狗！";
        }

        UK7_Admin mykey = new UK7_Admin();
        private void btn_Start_Click(object sender, EventArgs e)
        {
            if (!mykey.Ready) { Tools.show_err("初始化失败！"); return; }
            int[] keyHandles = new int[8];//NT77最多支持同时8只狗
            int[] keyCount = new int[1];
            int Result;

            //查找所有狗
            Result = UK7_Admin.NT77Admin.NTFindAll(keyHandles, keyCount);


        }
    }
}